var barpercent = 0;
var bar = document.getElementsByClassName('bar')[0];
bar.style.width = barpercent + '%';

LazyLoad.js(['/JS/Desktop/jquery-1.10.2.min.js', '/JS/Desktop/ndatetime-1.4.0.min.js'], function () {
    barpercent += 5;
    bar.style.width = barpercent + '%';
    loadScript();
});

function loadScript() {
    LazyLoad.css(["/CSS/Desktop/reset.css", "/CSS/Desktop/font.css"], function (arg) {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css("/CSS/Desktop/uberstrap.css", function (arg) {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css("/CSS/Desktop/unleashed.css", function (arg) {
        barpercent += 5;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css("/CSS/Desktop/unleashed-responsive.css", function (arg) {
        barpercent += 3;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css("/CSS/Desktop/unleashed-new.css", function (arg) {
        barpercent += 3;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css("/CSS/Desktop/redactor.css", function (arg) {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css("/CSS/Desktop/reports.css", function (arg) {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css(["/CSS/Desktop/print.css", "/CSS/Desktop/canvas.css"], function (arg) {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.css(["/CSS/Desktop/bootstrap-tour.css", "/CSS/Desktop/loading.css"], function (arg) {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js(["/JS/Desktop/base64.js", "/JS/Desktop/firstload.js"], function () {
        barpercent += 3;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js("/JS/Desktop/soapclient.js", function () {
        barpercent += 3;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js("/JS/Desktop/stuff.js", function () {
        barpercent += 3;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js("/Libs/jqueryui/js/jquery-ui-1.10.3.custom.min.js", function() {
        barpercent += 3;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js("/JS/Desktop/sourceSupporter.js", function() {
        barpercent += 2;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js("/JS/Desktop/ObjTree.js", function() {
        barpercent += 1;
        bar.style.width = barpercent + '%';
    });
    LazyLoad.js("/Libs/highchart/js/highcharts.js");
    LazyLoad.js("/Libs/nicedit/nicEdit.js");
}